package com.zjw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjw.annotation.domain.ResponseResult;
import com.zjw.annotation.domain.entity.Menu;

import java.util.List;

/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author ljzy
 * @since 2023-12-20 11:33:19
 */
public interface MenuService extends IService<Menu> {

    public List<Menu> getPermsById(Long id);

    public List<Menu> getTreeMenuById(Long id);

    public List<Menu> getTreeMenuAdmin();

    ResponseResult getMenuList(String status, String menuName);

    ResponseResult addMenu(Menu menu);

    ResponseResult getMenuById(Long id);

    ResponseResult editMenu(Menu menu);

    ResponseResult removeMenu(Long id);

    ResponseResult getTreeMenuList();

    void assignRoleAuth(Long id, List<String> menuIds);

    ResponseResult getRoleMenuTreeById(Long id);

    void removeRoleMenuById(Long id);
}

